package com.example.springdome.controller;

import com.example.springdome.entity.User;
import org.springframework.web.bind.annotation.*;


@RestController
public class HelloController {
    @GetMapping("/user")
    public String HELLOW(){
       return "aaaa";
    }

    @RequestMapping (value = "/user1",method = RequestMethod.POST )
    public String HELLOW1(@RequestBody User user){
        System.out.println(user.toString());
        return user.toString();
    }
}
